package com.imon.groovybox

class Person {
	String name
	int age

	String toString() {
		"$name is $age"
	}
}

p = new Person(name:"John Doe", age:31)
println "Hello " + p

def d = new Date()
println d+=7

(1..3).each{ println d++ }

def l = []
// if (empty is false) in groovy
if (!l) {
	l << "John"
	l << "Doe"
}
println l.class
def m = l as String[]
println m.class

s = null
println s?.size()

